<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<%@ include file="../base.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>后台系统</title>
		<link rel="stylesheet" type="text/css" href="style/style.css" />
	</head>

	<body>
		<%@include file="../template/admintop.jsp"%>

		<div id="contain">
			<c:if test="${not empty list}">
				<c:forEach items="${list}" var="type">
					<div class="board">
						<div class="board_title">
							<a href="type.jspx?_method=adminfindall">${type.name }</a>
							<c:if test="${not empty sessionScope.admin }">
								<a class="newpost" href="type.jspx?_method=adminlist&id=${type.id }"> 审核该类帖子 </a>
							</c:if>
						</div>
						<c:forEach items="${type.tielist}" var="tie">
							<div class="posts">
							<c:if test="${tie.isBest == 1}">
							【精华帖】
							</c:if>
							<c:if test="${tie.isTop == 1}">
							↑
							</c:if>
								<a href="tie.jspx?_method=admindetail&id=${tie.id }">${tie.title
									}</a>
								<span class="timeauthor">${tie.createTime} by
									${tie.user.name }</span>
								<span class="read">${tie.clickNum }阅/${tie.replyNum }回</span>
							</div>
						</c:forEach>
						<div class="posts">
							<a href="type.jspx?_method=adminlist&id=${type.id }" class="more">更多帖子...</a>
						</div>
					</div>
				</c:forEach>
				</c:if>
		</div>

		<%@include file="../template/footer.jsp"%>

	</body>
</html>
